import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import HomeSify from '../views/HomeSify.vue'
import HomePay from '../views/HomePay.vue' 
import MyPage from '../views/MyPage.vue' 

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,//首页
    },
    {
      path: '/classify',
      name: 'classify',
      component: HomeSify,//分类
    },
    {
      path: '/pay',
      name: 'pay',
      component: HomePay,//购物车
    },
    {
      path:"/my",
      name:'my',
      component:MyPage,//我的
    }
  ],
})

export default router
